<script setup lang="ts">
import { ref } from 'vue';
import Game from './components/Game.vue'
const show = ref(false)
const start = () => {
  show.value = true
}

// const ipcHandle = () => window.electron.ipcRenderer.send('ping')
</script>

<template>
  <img alt="logo" class="logo" src="./assets/electron.svg" />
  <div class="creator">Powered by electron-vite</div>
  <div class="text">
    Build an Electron app with
    <span class="vue">Vue</span>
    and
    <span class="ts">TypeScript</span>
  </div>
  <p class="tip">Please try pressing <code>F12</code> to open the devTool</p>
  <div class="actions">
    <div class="action">
      <a href="">快速开始</a>
    </div>
    <div class="action">
      <a href="">快速退出</a>
      <!-- <a target="_blank" rel="noreferrer" @click="ipcHandle">Send IPC</a> -->
    </div>
  </div>
  <Game />
</template>
